def eliminateDuplicates(lst:list) -> str:
    lst2 = []
    for i in lst:
        if i not in lst2:
            lst2.append(i)

    r = ''
    for i in lst2:
        r += i + ' '

    return 'The distinct numbers are:' + r


a = input().split(',')
print(eliminateDuplicates(a))

